package com.tsunami.auth.service.admin;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tsunami.authority.dto.admin.TenantSaveDTO;
import com.tsunami.authority.dto.admin.TenantUpdateDTO;
import com.tsunami.authority.entity.admin.Tenant;
import com.tsunami.base.R;
import com.tsunami.user.model.SysUser;

import java.util.List;

/**
 * @Classname ITenantService
 * @Description TODO
 * @Date 2021-12-02 16:25
 * @Created by lx
 */
public interface ITenantService extends IService<Tenant> {

    /**
     * 租户列表分页
     * @param data
     * @return
     */
    R selectPageList(Tenant data);

    /**
     * 新增租户
     * @param user
     * @param data
     * @return
     */
    Tenant saveTenant(SysUser user, TenantSaveDTO data);

    /**
     * 删除
     */
    boolean remove(List<Long> ids);
    /**
     * 更新租户
     * @param user
     * @param data
     * @return
     */
    Tenant updateTenant(SysUser user, TenantUpdateDTO data);
}
